CC = gcc
CFLAGS = -I/usr/include/mpi -I/usr/include/petsc 
#CFLAGS = -I/home/peter/Keyes/petsc/petsc-2.3.3-p15
CLIBS = -lpetsc -lpetscmat -lpetscvec -lpetscksp 
CMACROS = 
LD = ld
RM = rm -f
CD = cd
PETSCPREFIX = petsc

all: CRF.c test.c
	$(CC) $(CFLAGS) $(CMACROS) $(CLIBS) CRF.c -o CRF
	$(CC) $(CFLAGS) $(CMACROS) $(CLIBS) test.c -o test

clean:
	$(RM) *.o *~ *.output crf
